package scala.scalaClass.Inheritant

class Animal(var name:String, var age:Int){
   
   println("Animal Constructor is called")
   def this(name:String){
      this(name,0)
   }
   
   override def toString() = s"$name 's age is : $age"
}